package cn.com.taiji.oospub.wechat.service.impl;

import cn.com.taiji.oospub.wechat.entity.OrderTimeSetup;
import cn.com.taiji.oospub.wechat.mapper.OrderTimeSetupMapper;
import cn.com.taiji.oospub.wechat.service.IOrderTimeSetupService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 
 * @since 2020-10-28
 */
@Service
public class OrderTimeSetupServiceImpl extends ServiceImpl<OrderTimeSetupMapper, OrderTimeSetup> implements IOrderTimeSetupService {
    @Autowired
    private OrderTimeSetupMapper orderTimeSetupMapper;


    @Override
    public OrderTimeSetup findOrderTimeSetupBySchoolId(String schoolId) {
        QueryWrapper<OrderTimeSetup> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("School_Id", schoolId);
        return orderTimeSetupMapper.selectOne(queryWrapper);
    }
}
